package com.danco.training.zaneuskaya.repository;

import java.util.Date;
import java.util.List;

import org.hibernate.HibernateException;

import com.danco.training.zaneuskaya.domain.Forum;
import com.danco.training.zaneuskaya.domain.Note;
import com.danco.training.zaneuskaya.domain.User;

/**
 * @author Zaneuskaya Aliaksandra
 *
 */
public interface NoteDao extends GenericDao<Note, Integer> {

	public List<Note> findNotesByForum(Forum forum) throws HibernateException;

	public List<Note> findNotesBySender(User user) throws HibernateException;

	public List<Note> findNotesByPeriod(Date from, Date to)
			throws HibernateException;

	public List<Note> findNotesByPeriodUserForum(Date from, Date to, User user,
			Forum forum) throws HibernateException;

}
